GetAppFiles
GetAppFiles Get information about files selected in the Finder
#include <SegLoad.h> Segment Loader
void GetAppFiles( index, fileStuff );
short index ; specifies which file to query
AppFile *fileStuff ; address of a 264-byte AppFile structure
GetAppFiles obtains the filename, type, and volume of one of the files
selected by the user when the Finder started your application.
index specifies which file you want to query. It should range from 1 to the
fileCnt value obtained through a previous call to CountAppFiles.
fileStuff is the address of a 264-byte AppFile structure. Upon return, it
contains information about the index-th file selected when the Finder
started your application.
Returns: none

Notes: When a user double-clicks a document whose FInfo.fdCreator field (see
GetFInfo) contains your signature, your application will begin executing.
At that time, you should call CountAppFiles and use GetAppFiles to
obtain the information needed to open that document.
In the event that the user selected two or more of your documents, and then
selected Open from the Finder's File menu, you should call GetAppFiles
several times and open each of the selected documents. See CountAppFiles
for an example.
Note: The files are indexed in the order the user selected them.
See AppFile for a description of the information returned by this call.
GetAppParms returns a handle to a block of data that contains this same
application file information - in a slightly different form.